﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Noticias.aspx.cs" Inherits="SindSaudeAdminUI.Noticias" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%--<!--<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>-->
<!--<%@ Register assembly="FreeTextBox" namespace="FreeTextBoxControls" tagprefix="FTB" %>-->--%>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="noticia">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true">
    </asp:ScriptManager>
    <asp:GridView ID="gridnoticia" runat="server" AutoGenerateColumns="False" 
        onrowcommand="gridnoticia_RowCommand" Width="900px">
        <Columns>
            <asp:BoundField HeaderText="Numero" DataField="id"/>
            <asp:BoundField HeaderText="noticia" DataField="strNome"/>
            <asp:BoundField HeaderText="Data" DataField="strData" />
            <asp:BoundField DataField="carrocel" HeaderText="Carrossel home" />
           <asp:TemplateField>
              <ItemTemplate>
                <asp:Button runat="server" ID="AddButton" Text="Adicionar" CommandName="Adicionar"/>
              </ItemTemplate>
           </asp:TemplateField>
           <asp:TemplateField>
              <ItemTemplate>
                <asp:Button runat="server" ID="AltButton" Text="Alterar" CommandName="Alterar"  CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"/>
              </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
              <ItemTemplate>
                <asp:Button runat="server" ID="DelButton" Text="Remover" CommandName="Remover" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>"/>
              </ItemTemplate>
           </asp:TemplateField>
        </Columns>
    </asp:GridView>
        <br />
    <br />
    <asp:Panel runat="server" ID="pnlnoticia" Visible="false">      
        Nome ou titulo :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtNome" runat="server" Width="295px" MaxLength="100"></asp:TextBox>
        <br />
        <br />
        Data visual do noticia :&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="txtData" runat="server" Width="151px"></asp:TextBox>
        <br />
        <br />
        Data do noticia :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:TextBox ID="txtDatetime" runat="server" Width="151px"></asp:TextBox>
        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDatetime">
        </cc1:CalendarExtender>
        <br />
        <br />
        Url da Imagem :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:FileUpload ID="FUImagenoticia" runat="server" />
        <br />
        <br />
&nbsp;<asp:CheckBox ID="chkCarrossel" runat="server" 
            oncheckedchanged="chkCarrossel_CheckedChanged" Visible="False" />
        <br />
        <br />
        Texto da chamada(150 Caracteres):<br /> <br />
        <asp:TextBox ID="txtSubTitulo" runat="server" Height="145px" 
            TextMode="MultiLine" Width="378px" MaxLength="150"></asp:TextBox>
        <br />
        <br />
        Texto:
        <br />
        <br />
        <asp:TextBox ID="txtTexto" runat="server" Height="145px" TextMode="MultiLine" 
            Width="520px"></asp:TextBox>
        <br />
        <br />
        <asp:Button ID="btnGravar" runat="server" Text="Incluir" 
            onclick="btnGravar_Click" />
        &nbsp;&nbsp;&nbsp;<asp:Button ID="btnAterar" runat="server" onclick="btnAterar_Click" 
            Text="Alterar" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
    </asp:Panel>
</div>
</asp:Content>
